package com.mr.base.alpha.api;

import com.mr.base.alpha.api.fallback.CommonFeignFallbackClient;
import com.mr.base.core.alibaba.vo.Result;
import com.mr.base.core.common.vo.OptionsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "mr-base-alpha" , fallback = CommonFeignFallbackClient.class)
public interface CommonFeign {

    @GetMapping("/common/site")
    Result<List<OptionsVO>> sites();

}
